package com.backend.apartment.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.backend.common.annotation.Excel;
import com.backend.common.core.domain.BaseEntity;

/**
 * 公寓管理对象 apartment
 * 
 * @author ruoyi
 * @date 2024-10-04
 */
public class Apartment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公寓ID */
    private Long apartmentId;

    /** 公寓名称 */
    @Excel(name = "公寓名称")
    private String apartmentName;

    /** 省份 */
    @Excel(name = "省份")
    private String province;

    /** 城市 */
    @Excel(name = "城市")
    private String city;

    /** 县 */
    @Excel(name = "县")
    private String county;

    /** 公寓具体位置 */
    @Excel(name = "公寓具体位置")
    private String apartmentLocation;

    /** 月租 */
    @Excel(name = "月租")
    private Long monthlyRent;

    /** 状态（0未上架 1未出租 2已出租） */
    @Excel(name = "状态", readConverterExp = "0=未上架,1=未出租,2=已出租")
    private String status;

    /** 公寓类型信息 */
    private List<ApartmentType> apartmentTypeList;
    private List<Image> imageList;

    public void setApartmentId(Long apartmentId) 
    {
        this.apartmentId = apartmentId;
    }

    public Long getApartmentId() 
    {
        return apartmentId;
    }
    public void setApartmentName(String apartmentName) 
    {
        this.apartmentName = apartmentName;
    }

    public String getApartmentName() 
    {
        return apartmentName;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setCounty(String county) 
    {
        this.county = county;
    }

    public String getCounty() 
    {
        return county;
    }
    public void setApartmentLocation(String apartmentLocation) 
    {
        this.apartmentLocation = apartmentLocation;
    }

    public String getApartmentLocation() 
    {
        return apartmentLocation;
    }
    public void setMonthlyRent(Long monthlyRent) 
    {
        this.monthlyRent = monthlyRent;
    }

    public Long getMonthlyRent() 
    {
        return monthlyRent;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public List<ApartmentType> getApartmentTypeList()
    {
        return apartmentTypeList;
    }

    public void setApartmentTypeList(List<ApartmentType> apartmentTypeList)
    {
        this.apartmentTypeList = apartmentTypeList;
    }

    public List<Image> getImageList() {
        return imageList;
    }

    public void setImageList(List<Image> imageList) {
        this.imageList = imageList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("apartmentId", getApartmentId())
            .append("apartmentName", getApartmentName())
            .append("province", getProvince())
            .append("city", getCity())
            .append("county", getCounty())
            .append("apartmentLocation", getApartmentLocation())
            .append("monthlyRent", getMonthlyRent())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("apartmentTypeList", getApartmentTypeList())
            .append("imageList", getImageList())
            .toString();
    }
}
